<template>
	<div>

		<router-view></router-view>
	</div>
</template>

<script>
	import {
		getPermission
	} from '@/api/industry'
	export default {
		name: 'Industry',

		data() {
			return {

			};
		},
		watch: {
			// 监听路由变化
			$route(to, from) {
				let data = {
					userName:localStorage.getItem('username')
				}
				getPermission(data).then(res=>{
					console.log(res.data)
					localStorage.setItem('userList',JSON.stringify(res.data))
				})
			},
		},
		mounted() {
			console.log(113)
		},

		methods: {

		},
	};
</script>